package com.ruoyi.system.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 出库单对象 dispatch_order
 * 
 * @author ruoyi
 * @date 2025-02-10
 */
public class DispatchOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String no;

    /** 仓库类型 */
    @Excel(name = "仓库类型")
    private String dispatchType;

    /** 关联单号 */
    @Excel(name = "关联单号")
    private String assactionNo;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String consumerName;

    /** 供应商编码 */
    @Excel(name = "供应商编码")
    private String consumerCode;

    /** 联系人电话 */
    @Excel(name = "联系人电话")
    private String contactPhone;

    /** 制单人 */
    @Excel(name = "制单人")
    private String createOrderUser;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 审核人 */
    @Excel(name = "审核人")
    private String auditor;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /** 订单信息 */
    @Excel(name = "订单信息")
    private String info;

    /** 出库订单详情信息 */
    private List<DispatchOrderInfo> dispatchOrderInfoList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNo(String no) 
    {
        this.no = no;
    }

    public String getNo() 
    {
        return no;
    }
    public void setDispatchType(String dispatchType) 
    {
        this.dispatchType = dispatchType;
    }

    public String getDispatchType() 
    {
        return dispatchType;
    }
    public void setAssactionNo(String assactionNo) 
    {
        this.assactionNo = assactionNo;
    }

    public String getAssactionNo() 
    {
        return assactionNo;
    }
    public void setConsumerName(String consumerName) 
    {
        this.consumerName = consumerName;
    }

    public String getConsumerName() 
    {
        return consumerName;
    }
    public void setConsumerCode(String consumerCode) 
    {
        this.consumerCode = consumerCode;
    }

    public String getConsumerCode() 
    {
        return consumerCode;
    }
    public void setContactPhone(String contactPhone) 
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone() 
    {
        return contactPhone;
    }
    public void setCreateOrderUser(String createOrderUser) 
    {
        this.createOrderUser = createOrderUser;
    }

    public String getCreateOrderUser() 
    {
        return createOrderUser;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setAuditor(String auditor) 
    {
        this.auditor = auditor;
    }

    public String getAuditor() 
    {
        return auditor;
    }
    public void setAuditTime(Date auditTime) 
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() 
    {
        return auditTime;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }

    public List<DispatchOrderInfo> getDispatchOrderInfoList()
    {
        return dispatchOrderInfoList;
    }

    public void setDispatchOrderInfoList(List<DispatchOrderInfo> dispatchOrderInfoList)
    {
        this.dispatchOrderInfoList = dispatchOrderInfoList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("dispatchType", getDispatchType())
            .append("assactionNo", getAssactionNo())
            .append("consumerName", getConsumerName())
            .append("consumerCode", getConsumerCode())
            .append("contactPhone", getContactPhone())
            .append("createOrderUser", getCreateOrderUser())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("auditor", getAuditor())
            .append("auditTime", getAuditTime())
            .append("info", getInfo())
            .append("dispatchOrderInfoList", getDispatchOrderInfoList())
            .toString();
    }
}
